home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_qt.idb / usr / freeware / include / Qt / qfontdata.h.z / qfontdata.h
Encoding:
C/C++ Source or Header  |  1998-10-28  |  1.8 KB  |  75 lines

  1. /****************************************************************************
  2. ** $Id: qfontdata.h,v 2.12 1998/07/03 00:09:33 hanord Exp $
  3. **
  4. **              ***   INTERNAL HEADER FILE   ***
  5. **
  6. **        This file is NOT a part of the Qt interface!
  7. **
  8. ** Definition of QFontData struct
  9. **
  10. ** Created : 941229
  11. **
  12. ** Copyright (C) 1992-1998 Troll Tech AS.  All rights reserved.
  13. **
  14. ** This file is part of Qt Free Edition, version 1.40.
  15. **
  16. ** See the file LICENSE included in the distribution for the usage
  17. ** and distribution terms, or http://www.troll.no/free-license.html.
  18. **
  19. ** IMPORTANT NOTE: You may NOT copy this file or any part of it into
  20. ** your own programs or libraries.
  21. **
  22. ** Please see http://www.troll.no/pricing.html for information about 
  23. ** Qt Professional Edition, which is this same library but with a
  24. ** license which allows creation of commercial/proprietary software.
  25. **
  26. *****************************************************************************/
  27.  
  28. #ifndef QFONTDATA_H
  29. #define QFONTDATA_H
  30.  
  31.  
  32. struct QFontDef {                // font definition
  33.     QString    family;
  34.     short    pointSize;
  35.     uint    styleHint    : 8;
  36.     uint    charSet        : 8;
  37.     uint    weight        : 8;
  38.     uint    italic        : 1;
  39.     uint    underline    : 1;
  40.     uint    strikeOut    : 1;
  41.     uint    fixedPitch    : 1;
  42.     uint    hintSetByUser    : 1;
  43.     uint    rawMode        : 1;
  44.     uint    dirty        : 1;
  45.     short    lbearing;
  46.     short    rbearing;
  47. };
  48.  
  49.  
  50. class QFontInternal;
  51.  
  52. struct QFontData : public QShared {
  53.     QFontData()
  54.     : exactMatch(FALSE), fin(0)
  55.     {}
  56.     QFontData( const QFontData &d )
  57.     : QShared( d ), req(d.req), exactMatch(d.exactMatch), fin(d.fin)
  58.     {}
  59.    ~QFontData()
  60.     {}
  61.     QFontData &operator=( const QFontData &d )
  62.     {
  63.         req = d.req;
  64.         exactMatch = d.exactMatch;
  65.         fin = d.fin;
  66.         return *this;
  67.     }
  68.     QFontDef        req;            // requested font
  69.     bool        exactMatch;
  70.     QFontInternal  *fin;
  71. };
  72.  
  73.  
  74. #endif // QFONTDATA_H
  75.